package com.cmc.cloud.cmclink.doc.api.document;

import javax.validation.Valid;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.cmc.cloud.cmclink.doc.api.document.rep.sendarrivaldto.BlnoArrivalNoticeDTO;
import com.cmc.cloud.cmclink.doc.api.document.rep.sendarrivaldto.BlnoSendArrivalReqDTO;
import com.cmc.cloud.cmclink.doc.constant.DocApiConstants;
import com.cmes.framework.common.pojo.CommonResult;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;

/**
 * RPC 到货通知接口
 * 
 * @author dph
 */
@FeignClient(name = DocApiConstants.NAME)
@Tag(name = "RPC 服务 - 到货通知")
public interface BlnoArrivalNoticeApi {
    String PREFIX = DocApiConstants.PREFIX + "/arrivalNotice";

    /**
     * 到货通知pdf构造参数查询
     *
     * @param blnoSendArrivalReqDto DTO
     * @return map
     */
    @PostMapping(PREFIX + "/query")
    @Operation(summary = "到货通知pdf构造参数查询")
    CommonResult<BlnoArrivalNoticeDTO>
        queryArrivalNotice(@Valid @RequestBody BlnoSendArrivalReqDTO blnoSendArrivalReqDto);
}
